package com.hmf.dao;

import com.hmf.bean.Bicycle;
import com.hmf.bean.RideRecord;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface HmfListMapper {
    //检查单车是否存在
    Bicycle queryBicycleByNumber(String bicycleNumber);
    //增加
    int addBicycle(Map<String,Object> params);
    //删除
    int deleteBicycle(String bicycleNumber);
    //修改
    int updateBicycle(Map<String,Object> params);
    //查询
    Bicycle searchBicycle(String bicycleNumber);
    //分页查询
    List<Bicycle> getBicyclesByPage(Map<String,Object> map);

}
